package com.pengshun.modules.api.coal.para;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.pengshun.modules.api.coal.validator.First;
import com.pengshun.modules.api.coal.validator.Second;
import com.pengshun.modules.api.coal.validator.Third;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.NotNull;
import java.util.Date;

@Data
public class CoalParam {

    @NotNull(message = "mineMouthId不能为空", groups = {Second.class})
    private Long mineMouthId;

    private  Integer type;

    @NotNull(message = "coalId不能为空", groups = {Third.class})
    private Long coalId;

    private String categoryCode;

    @DateTimeFormat(pattern = "yyyy-MM") //入参
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd") //出参
    private Date  date;
    private Integer  startDate;
    private Integer  endDate;
    private String  sDate;
    private String  eDate;

    private Integer day;

}
